// 获取平台所有币种
export const getCurrencys = function(data) {
    const currencysList = $.$sessionStorage.getItem('currencysList', true);
    data = data || {};
    if (currencysList && !data.boolhasAll) {
        return new Promise(function(resolve) {
            return resolve(currencysList);
        });
    } else {
        return $.http('/apis/upordownOperate-grinok/upordownoperate/list', data, 'get').then(function(res) {
            if (!data.boolhasAll) $.$sessionStorage.setItem('currencysList', res.data);
            return res.data;
        });
    }
};